package com.watchme.es.util;

import java.sql.Connection;
import java.sql.DriverManager;


public class DbHelper {

    public static final String driver = "com.mysql.jdbc.Driver";

    public static Connection conn = null;

    public static Connection getConnection(String url, String username, String password) {
        try {
            Class.forName(driver);
            conn = DriverManager.getConnection(url, username, password);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return conn;
    }
}
